package b.i.e.a;

import android.hardware.fingerprint.FingerprintManager.AuthenticationCallback;
import android.util.Log;
import b.d.c;
import b.d.e;
import b.d.e.b;
import b.d.f;
import b.d.h;
import java.util.Objects;

/* compiled from: FingerprintManagerCompat */
public class a extends AuthenticationCallback {
    public final /* synthetic */ b.i.e.a.b.a a;

    public a(b.i.e.a.b.a aVar) {
        this.a = aVar;
    }

    public void onAuthenticationError(int i, CharSequence charSequence) {
        b.d.e.a aVar = (b.d.e.a) this.a;
        Objects.requireNonNull(aVar);
        if (i == 5) {
            if (e.this.e0 == 0) {
                aVar.a(i, charSequence);
            }
            e.this.n0();
        } else if (i == 7 || i == 9) {
            aVar.a(i, charSequence);
            e.this.n0();
        } else {
            Object charSequence2;
            Object obj;
            if (charSequence2 == null) {
                StringBuilder stringBuilder = new StringBuilder();
                stringBuilder.append("Got null string for error message: ");
                stringBuilder.append(i);
                Log.e("FingerprintHelperFrag", stringBuilder.toString());
                charSequence2 = e.this.d0.getResources().getString(2131689783);
            }
            switch (i) {
                case 1:
                case 2:
                case 3:
                case 4:
                case 5:
                case 7:
                case 8:
                case 9:
                case 10:
                case 11:
                case 12:
                case 13:
                case 14:
                    obj = null;
                    break;
                default:
                    obj = 1;
                    break;
            }
            if (obj != null) {
                i = 8;
            }
            e.this.W.a.obtainMessage(2, i, 0, charSequence2).sendToTarget();
            e eVar = e.this;
            eVar.Z.postDelayed(new f(aVar, i, charSequence2), (long) c.r0(eVar.k()));
        }
    }

    public void onAuthenticationFailed() {
        b.d.e.a aVar = (b.d.e.a) this.a;
        e eVar = e.this;
        b bVar = eVar.W;
        bVar.a.obtainMessage(1, eVar.d0.getResources().getString(2131689924)).sendToTarget();
        e.this.X.execute(new h(aVar));
    }

    public void onAuthenticationHelp(int i, CharSequence charSequence) {
        e.this.W.a.obtainMessage(1, charSequence).sendToTarget();
    }

    /* JADX WARNING: Removed duplicated region for block: B:14:0x004a  */
    public void onAuthenticationSucceeded(android.hardware.fingerprint.FingerprintManager.AuthenticationResult r5) {
        /*
        r4 = this;
        r0 = r4.a;
        r5 = r5.getCryptoObject();
        r1 = 0;
        if (r5 != 0) goto L_0x000a;
    L_0x0009:
        goto L_0x003a;
    L_0x000a:
        r2 = r5.getCipher();
        if (r2 == 0) goto L_0x001a;
    L_0x0010:
        r2 = new b.i.e.a.b$b;
        r5 = r5.getCipher();
        r2.m483init(r5);
        goto L_0x003b;
    L_0x001a:
        r2 = r5.getSignature();
        if (r2 == 0) goto L_0x002a;
    L_0x0020:
        r2 = new b.i.e.a.b$b;
        r5 = r5.getSignature();
        r2.m482init(r5);
        goto L_0x003b;
    L_0x002a:
        r2 = r5.getMac();
        if (r2 == 0) goto L_0x003a;
    L_0x0030:
        r2 = new b.i.e.a.b$b;
        r5 = r5.getMac();
        r2.m484init(r5);
        goto L_0x003b;
    L_0x003a:
        r2 = r1;
    L_0x003b:
        r0 = (b.d.e.a) r0;
        r5 = b.d.e.this;
        r5 = r5.W;
        r3 = 5;
        r5.a(r3);
        r5 = new androidx.biometric.BiometricPrompt$c;
        if (r2 != 0) goto L_0x004a;
    L_0x0049:
        goto L_0x0067;
    L_0x004a:
        r3 = r2.b;
        if (r3 == 0) goto L_0x0054;
    L_0x004e:
        r1 = new androidx.biometric.BiometricPrompt$d;
        r1.m111init(r3);
        goto L_0x0067;
    L_0x0054:
        r3 = r2.a;
        if (r3 == 0) goto L_0x005e;
    L_0x0058:
        r1 = new androidx.biometric.BiometricPrompt$d;
        r1.m110init(r3);
        goto L_0x0067;
    L_0x005e:
        r2 = r2.c;
        if (r2 == 0) goto L_0x0067;
    L_0x0062:
        r1 = new androidx.biometric.BiometricPrompt$d;
        r1.m112init(r2);
    L_0x0067:
        r5.m109init(r1);
        r1 = b.d.e.this;
        r1 = r1.X;
        r2 = new b.d.g;
        r2.m378init(r0, r5);
        r1.execute(r2);
        r5 = b.d.e.this;
        r5.n0();
        return;
        */
        throw new UnsupportedOperationException("Method not decompiled: b.i.e.a.a.onAuthenticationSucceeded(android.hardware.fingerprint.FingerprintManager$AuthenticationResult):void");
    }
}
